<template>
    <div class="weekends">
      <div class="weekends-title">周末去哪儿</div>
      <ul>
        <li class="weekends-item"
            v-for="(item,index) in weekendsList"
            :key="index"
        >
          <div class="weekends-img">
            <img :src="item.imgUrl">
          </div>
          <div class="weekends-message">
            <p>{{item.text}}</p>
            <p>{{item.msg}}</p>
          </div>
        </li>
      </ul>
    </div>
</template>

<script>
    export default {
        name: "weekends",
      props:["weekendsList"],
      data(){
          return{

          }

      }
    }
</script>

<style scoped>
 .weekends-title{
   font-size: .32rem;
   padding: .24rem;
 }
  .weekends-item{
    margin-bottom: .1rem;
    background-color: #fff;
    font-size: .28rem;
  }
  .weekends-img{
    width: 100%;
    height: 0;
    padding-bottom: 37.4375%;;
  }
  .weekends-img img{
    width: 100%;
  }
  .weekends-message{
    padding: .14rem .2rem .2rem .2rem;
  }
  .weekends-message p{
    margin-top: .2rem;
  }
  .weekends-message p+p{
    color: #616161;
    font-size: .24rem;
  }
</style>
